




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/07/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfmaterieldepart.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfmaterieldepart.entity.YfMaterielDepart;
import com.application.yfmaterieldepart.struts.form.YfMaterielDepartForm;
import com.application.yfmaterieldepart.dao.YfMaterielDepartDAO;
 /**
 * 
 * Description:YfMaterielDepartService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/07/2012 
 * 
 */
public class YfMaterielDepartService extends BaseService
{
	private YfMaterielDepartDAO yfMaterielDepartDAO;

	public YfMaterielDepartDAO getYfMaterielDepartDAO() {
		return this.yfMaterielDepartDAO;
	}

	public void setYfMaterielDepartDAO(YfMaterielDepartDAO yfMaterielDepartDAO) {
		this.yfMaterielDepartDAO = yfMaterielDepartDAO;
	}
        

        public YfMaterielDepart getYfMaterielDepart(YfMaterielDepart yfMaterielDepart) {
		return (YfMaterielDepart) this.getBaseDao().queryByPk(yfMaterielDepart, yfMaterielDepart.getId());
	}
	
	public Integer getAllCountYfMaterielDepart(YfMaterielDepartForm yfMaterielDepartForm){
		return this.yfMaterielDepartDAO.getAllCountYfMaterielDepart(yfMaterielDepartForm);
	}
	
	public List<YfMaterielDepart> searchYfMaterielDepart(YfMaterielDepartForm yfMaterielDepartForm, PageBean pageBean) throws Exception {
		List<YfMaterielDepart> yfMaterielDepartList = (List) this.yfMaterielDepartDAO.searchYfMaterielDepart(yfMaterielDepartForm, pageBean);
		return yfMaterielDepartList;
	}
        
        public void deleteYfMaterielDeparts(YfMaterielDepartForm yfMaterielDepartForm){
	   this.yfMaterielDepartDAO.deleteYfMaterielDeparts(yfMaterielDepartForm);	 
	}
        
        public List searchYfMaterielDepart(YfMaterielDepartForm yfMaterielDepartForm)throws Exception {
    		List<YfMaterielDepart> yfMaterielDepartList = (List) this.yfMaterielDepartDAO.searchYfMaterielDepart(yfMaterielDepartForm);
    		return yfMaterielDepartList;
    	}
            
}
